<template>
  <div id="app">
    <Login v-if="isLoginPage" />
    <div v-else>
      <Header />
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
import Header from "@/components/header";
import Login from "@/views/common/login.vue";
import { getBrowserInfo } from "@/utils/public";
export default {
  name: "App",
  data() {
    return {
      isIe: getBrowserInfo(), //判断ie
    };
  },
  computed: {
    isLoginPage() {
      return this.$route.path === "/login";
    },
  },
  components: {
    Header,
    Login,
  },
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-width: 1440px;
  height: 100%;
}
</style>
